﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Lidgren.Network;

namespace Network.Messages.LiveControl.S2C
{
   
    public class S2CRefuseControlMessage : NovaMessage
    {

        public S2CRefuseControlMessage() : base((ushort)CustomMessageType.S2CRefuseControlMessage)
        {
        }

        public MouseType MouseType;
        public override void WritePayload(NetOutgoingMessage message)
        {
            base.WritePayload(message);
            message.Write((int)MouseType);
        }

        public override void ReadPayload(NetIncomingMessage message)
        {
            base.ReadPayload(message);
            MouseType = (MouseType) message.ReadInt32();
        }
    }

   public enum MouseType
    {
        MouseDown,
        DoubleClick,
    }
}
